import request from '@/utils/http.js'



// 登录
export function login(loginBodyParam) {
	 return request.post('/v1/auth/login',loginBodyParam)
}

// 获取用户个人信息
export function getUserInfo() {
	return request.get('/v1/user/getUserInfo')
}

// 获取用户个人信息
export function getUserInfoByUid(uid) {
	return request.get('/v1/user/getUserInfo',uid)
}

//修改用户信息
export function updateUserInfo(param) {
	return request.post('/v1/user/updateUserInfo',param)
}

//获取粉丝列表
export function getUserFans(param) {
	return request.get('/v1/user/getUserFans',param)
}

//关注
export function insertFollowUserByUid(param){
	return request.get('/v1/user/insertFollowUserByUid',param)
}

//取消关注
export function cancelFollowUserByUid(param){
	return request.get('/v1/user/cancelFollowUserByUid',param)
}